﻿using CommonType;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace S_Incident.Domains.WorkflowEngine
{
    /// <summary>
    /// 流程表
    /// </summary>
    [SugarTable("Process")]
    public class Process: BaceEntity
    {
        /// <summary>
        /// 流程id
        /// </summary>
        [SugarColumn(IsPrimaryKey =true, IsIdentity=true)]
        public int Id { get; set; }
        /// <summary>
        /// 流程名称
        /// </summary>
        [SugarColumn(ColumnDescription = "流程名称",Length =200,IsNullable =true)]
        public string? ProcessName { get; set; }
        /// <summary>
        /// 对应描述
        /// </summary>
        [SugarColumn(ColumnDescription ="对应描述",Length =200,IsNullable =true)]
        public string? ProcessDescription { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int DisplaySequence { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        [SugarColumn(ColumnDataType = "INT", IsNullable = false)]
        public Effective WhetherEffective { get; set; }
        /// <summary>
        /// 流程提醒
        /// </summary>
        [SugarColumn(ColumnDescription = "流程提醒", Length = 200, IsNullable = true)]
        public string? ProcessReminder { get; set; }
        /// <summary>
        /// 显示内容
        /// </summary>
        [SugarColumn(ColumnDataType = "INT", IsNullable = false)]
        public DisplayContent Content { get; set; }
        /// <summary>
        /// 表单管理Id
        /// </summary>
        public int FormId { get; set; }
    }
}
